package com.woniuxy.bean;

import com.alibaba.fastjson.JSONObject;
import lombok.Builder;
import lombok.Data;
import lombok.experimental.Tolerate;

import java.io.Serializable;

/**
 * @author: masterhai
 * @date: 2021/3/29:11:51
 * @description: 统一返回消息实体类
 */
@Data
@Builder
public class ResultBean implements Serializable {
    @Tolerate
    public ResultBean () {
    }

    private Integer code;
    private String msg;
    private Object data;

    public static ResultBean ParamError () {
        return ResultBean.builder().code(200).msg("非法参数").build();
    }
}
